<?php slot('title') ?>
<?php echo __('Reset Password') ?>
<?php end_slot() ?>
<?php use_javascript('jquery/jquery.qtip.min.js') ?>
<?php use_stylesheet('jquery/jquery.qtip.min.css') ?>
<?php use_javascript('login.js') ?>
<?php use_javascript('callFunctions.js') ?>
<?php slot('i18n') ?>
,"An email has been sent to":"<?php echo __("An email has been sent to") ?>"
<?php end_slot() ?>

<div class="login_top">
    <div class="login_bot">
        <h1><?php echo __('Reset Password') ?>
        </h1>
        <div class="login_repeat">
            <div class="form login_frm">
                <div id="alerts">
                    <?php if ($sf_user->hasFlash('message')): ?>
                        <?php include_partial('messages/alertMessage', array('_alert' => 'error', '_alertData' => array('Error', $sf_user->getFlash('message')))) ?>
                    <?php endif ?>
                </div>

                <form id="login" method="POST" action="<?php echo url_for('NewPassword', array('token' => $sf_request->getParameter('token'))) ?>">
                    <?php echo $form['_csrf_token']->render(); ?>

                    <div class="field">
                        <label class="lbl"><?php echo $form['password']->renderLabelName(__('Enter New password')) ?></label>
                        <?php echo $form['password']->render(array('class' => 'txtbox medium', 'autocomplete' => 'false')) ?>
                        <?php echo $form['password']->renderError() ?>
                    </div>
                    <div class="field">
                        <label class="lbl"><?php echo __('Retype Password') ?></label>
                        <?php echo $form['password2']->render(array('class' => 'txtbox medium', 'autocomplete' => 'false')) ?>
                        <?php echo $form['password2']->renderError() ?>
                    </div>
                    <div class="field btn_cont">
                        <input type="submit" class="btn rfloat" value="<?php echo __('Save New Password') ?>" name="submit" />
                        <div class="clear">
                        </div>
                    </div>
                </form> 
                <div class="clear">
                </div>
            </div>    
        </div>    
    </div>    
</div>    

<script type="text/javascript">
    $(document).ready(function () {
        $('.tip[title]').qtip();
    });
</script>
